
<?php 
/*
Template Name: ckeditor_upload
*/
?>
<?php  ?>
 
<?php 
//echo 'ckeditor_upload';

  if ( !is_user_logged_in() ) 
    {
      ?>

       
              <?php wp_die( __( 'Vui lòng đăng nhập hoặc quay lai trang chủ ! ' ) ); ?>
        
         
     <?php 
          
    }//if ( ! current_user_can( 'list_users' ) ) 
    elseif (is_user_logged_in() )  
 { 
 	get_header();

    if ( ( $current_user->roles[0] == 'author') or ( $current_user->roles[0] == 'contributor') or ( $current_user->roles[0] == 'subscriber') ) 
      {
       ?>

       
              <?php wp_die( __( 'Vui lòng đăng nhập hoặc quay lai trang chủ ! ' ) ); ?>
        
         
     <?php 

      }//if ( ( $current_user->roles[0] == 'author') or ( $current_user->roles[0] == 'contributor') or ( $current_user->roles[0] == 'subscriber') ) 
      elseif ( ( $current_user->roles[0] != 'author') or ( $current_user->roles[0] != 'contributor') or ( $current_user->roles[0] != 'subscriber') )
      {
     ?>

<div id="content_nano_three" class="clearfix">
    
     <div id="breaum_suausser"><h2>Thêm máy</h2></div>

		<div id="content" class='edit_user-page_phuc'>

		<div class="wrap">
					<div><br></div><h1 id="add-new-user"> Thêm </h1>
					<form action="<?php bloginfo('url');?>/process-product" method="POST"  id="creatproduct">
						<input name="id_may" type="hidden" id='id_may' value="createuser">
						<table class="form-table">
							<tbody>
								<tr class="form-field form-required">
								<th scope="row">
									<!-- <label Style='font-size:20px;font-weight:bold;'>Tên Máy</label> -->
									<h2  id='namzze_may'>Tên máy</h2>
								</th>
								<td>
									<input name="name_may" type="text" id="name_may" value="" aria-required="true">
								</td>
							</tr>
							<tr class="form-field form-required">
								
									
									<p>
										<strong id='ten-anh'>Chọn ảnh</strong>
										<input id="xImagePath" name="ImagePath" type="text" size="60"  />
										<input type="button" value="upload" onclick="BrowseServer( 'Images:/', 'xImagePath' );" id='uploadlen'/>
									</p>
									<div id="preview" style="display:none">
										<strong>Selected Thumbnails</strong><br/>
										<div id="thumbnails"></div>
									</div>
								
							</tr>
							<!-- 
							<tr class="form-field">
								<th scope="row"><label for="ngay_tao"></label></th>
								<td><input name="ngay_tao" type="hidden" id="ngay_tao" value=""></td>
							</tr>
							<tr class="form-field">
								<th scope="row"><label for="ngay_sua"></label></th>
								<td><input name="ngay_sua" type="hidden" id="ngay_sua" value=""></td>
							</tr>
							-->
							</tbody>
						</table>

						<p class="submit">
							<input type="submit" name="create_may" id="create_may" class="button button-primary" value="Thêm máy mới "> 
						</p>
					 </form>
		</div><!-- end class="wrap" --> 
       </div><!--- id="content" -->
</div><!-- id="content_nano_three" -->

<?php 
} //  elseif ( ( $current_user->roles[0] != 'author') or ( $current_user->roles[0] != 'contributor') or ( $current_user->roles[0] != 'subscriber') )
} //elseif ( ! current_user_can( 'list_users' ) )  
 ?>

		
<?php get_footer(); ?>